/// result : {"authorName":"凤凰网","authorId":1,"authorImgUrl":"http://mobile.bwstudent.com/images/news/author/ws.jpg","collectFlag":1,"commentNum":0,"content":"","focusFlag":1,"newsId":1,"praiseNum":0,"releaseTime":1535448349000,"shareNum":0,"title":"关于滴滴顺风车事件的几点思考"}
/// message : "查询成功"
/// status : "0000"

///
/// 张诚宇
///
/// 新闻详情实体类
///
/// 2022.6.14
///
///

class NewsMessageEntity {
  NewsMessageEntity({
      Result result, 
      String message, 
      String status,}){
    _result = result;
    _message = message;
    _status = status;
}

  NewsMessageEntity.fromJson(dynamic json) {
    _result = json['result'] != null ? Result.fromJson(json['result']) : null;
    _message = json['message'];
    _status = json['status'];
  }
  Result _result;
  String _message;
  String _status;
NewsMessageEntity copyWith({  Result result,
  String message,
  String status,
}) => NewsMessageEntity(  result: result ?? _result,
  message: message ?? _message,
  status: status ?? _status,
);
  Result get result => _result;
  String get message => _message;
  String get status => _status;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_result != null) {
      map['result'] = _result.toJson();
    }
    map['message'] = _message;
    map['status'] = _status;
    return map;
  }

}

/// authorName : "凤凰网"
/// authorId : 1
/// authorImgUrl : "http://mobile.bwstudent.com/images/news/author/ws.jpg"
/// collectFlag : 1
/// commentNum : 0
/// content : ""
/// focusFlag : 1
/// newsId : 1
/// praiseNum : 0
/// releaseTime : 1535448349000
/// shareNum : 0
/// title : "关于滴滴顺风车事件的几点思考"

class Result {
  Result({
      String authorName, 
      int authorId, 
      String authorImgUrl, 
      int collectFlag, 
      int commentNum, 
      String content, 
      int focusFlag, 
      int newsId, 
      int praiseNum, 
      int releaseTime, 
      int shareNum, 
      String title,}){
    _authorName = authorName;
    _authorId = authorId;
    _authorImgUrl = authorImgUrl;
    _collectFlag = collectFlag;
    _commentNum = commentNum;
    _content = content;
    _focusFlag = focusFlag;
    _newsId = newsId;
    _praiseNum = praiseNum;
    _releaseTime = releaseTime;
    _shareNum = shareNum;
    _title = title;
}

  Result.fromJson(dynamic json) {
    _authorName = json['authorName'];
    _authorId = json['authorId'];
    _authorImgUrl = json['authorImgUrl'];
    _collectFlag = json['collectFlag'];
    _commentNum = json['commentNum'];
    _content = json['content'];
    _focusFlag = json['focusFlag'];
    _newsId = json['newsId'];
    _praiseNum = json['praiseNum'];
    _releaseTime = json['releaseTime'];
    _shareNum = json['shareNum'];
    _title = json['title'];
  }
  String _authorName;
  int _authorId;
  String _authorImgUrl;
  int _collectFlag;
  int _commentNum;
  String _content;
  int _focusFlag;
  int _newsId;
  int _praiseNum;
  int _releaseTime;
  int _shareNum;
  String _title;
Result copyWith({  String authorName,
  int authorId,
  String authorImgUrl,
  int collectFlag,
  int commentNum,
  String content,
  int focusFlag,
  int newsId,
  int praiseNum,
  int releaseTime,
  int shareNum,
  String title,
}) => Result(  authorName: authorName ?? _authorName,
  authorId: authorId ?? _authorId,
  authorImgUrl: authorImgUrl ?? _authorImgUrl,
  collectFlag: collectFlag ?? _collectFlag,
  commentNum: commentNum ?? _commentNum,
  content: content ?? _content,
  focusFlag: focusFlag ?? _focusFlag,
  newsId: newsId ?? _newsId,
  praiseNum: praiseNum ?? _praiseNum,
  releaseTime: releaseTime ?? _releaseTime,
  shareNum: shareNum ?? _shareNum,
  title: title ?? _title,
);
  String get authorName => _authorName;
  int get authorId => _authorId;
  String get authorImgUrl => _authorImgUrl;
  int get collectFlag => _collectFlag;
  int get commentNum => _commentNum;
  String get content => _content;
  int get focusFlag => _focusFlag;
  int get newsId => _newsId;
  int get praiseNum => _praiseNum;
  int get releaseTime => _releaseTime;
  int get shareNum => _shareNum;
  String get title => _title;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['authorName'] = _authorName;
    map['authorId'] = _authorId;
    map['authorImgUrl'] = _authorImgUrl;
    map['collectFlag'] = _collectFlag;
    map['commentNum'] = _commentNum;
    map['content'] = _content;
    map['focusFlag'] = _focusFlag;
    map['newsId'] = _newsId;
    map['praiseNum'] = _praiseNum;
    map['releaseTime'] = _releaseTime;
    map['shareNum'] = _shareNum;
    map['title'] = _title;
    return map;
  }

}